﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using BLL;

namespace QLCuaHang
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void thiếtBịToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmNhomThietBi frmNhomThietBi = new frmNhomThietBi();
            frmNhomThietBi.ShowDialog();
        }

        private void thiếtBịToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmThietBi frmThietBi = new frmThietBi();
            frmThietBi.ShowDialog();
        }

        private void nhânViênToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmNhanVien frmNhanVien = new frmNhanVien();
            frmNhanVien.ShowDialog();
        }

        private void nhàCungCấpToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmNhaCungCap frmNhaCungCap = new frmNhaCungCap();
            frmNhaCungCap.ShowDialog();
        }

        private void kháchHàngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmKhachHang frmKhachHang = new frmKhachHang();
            frmKhachHang.ShowDialog();
        }

        private void phiếuXuấtToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmPhieuXuat frmPhieuXuat = new frmPhieuXuat();
            frmPhieuXuat.ShowDialog();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            if (frmDangNhap.quyen == 2)
            {
                nhânViênToolStripMenuItem.Enabled = false;
                quảnLýToolStripMenuItem.Enabled = false;
            }
        }

     

        private void quảnLýToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmNguoiDung frmNguoiDung = new frmNguoiDung();
            frmNguoiDung.ShowDialog();
        }

        private void trợGiúpToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start("Help.chm");
        }

        private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {

        }

     
    }
}
